package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CHolderDao;
import gov.ccswj.modules.ccbusiness.entity.CHolderEntity;
import gov.ccswj.modules.ccbusiness.service.CHolderService;



@Service("cHolderService")
public class CHolderServiceImpl implements CHolderService {
	@Autowired
	private CHolderDao cHolderDao;
	
	@Override
	public CHolderEntity queryObject(Integer id){
		return cHolderDao.queryObject(id);
	}
	
	@Override
	public List<CHolderEntity> queryList(Map<String, Object> map){
		return cHolderDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cHolderDao.queryTotal(map);
	}
	
	@Override
	public void save(CHolderEntity cHolder){
		cHolderDao.save(cHolder);
	}
	
	@Override
	public void update(CHolderEntity cHolder){
		cHolderDao.update(cHolder);
	}
	
	@Override
	public void delete(Integer id){
		cHolderDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cHolderDao.deleteBatch(ids);
	}

	@Override
	public List<CHolderEntity> queryListByEntname(String entname) {
		return cHolderDao.queryListByEntname(entname);
	}
	@Override
	public void deleteByname(String entname) {
		cHolderDao.delete(entname);
		
	}
}
